package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ly.common.core.domain.BaseVo;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 绑定ERP组织和金蝶账套
 * </p>
 * @author WuZH
 * @since 2024-09-25
 */
@Data
@TableName ("erp_king_org_info")
@ApiModel (value = "KingOrgEntity对象", description = "绑定ERP组织和金蝶账套")
public class KingOrgEntity extends BaseVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty ("id")
    @TableId (value = "id", type = IdType.INPUT)
    private String id;

    @ApiModelProperty ("ERP组织Id")
    @TableField ("org_id")
    private String orgId;

    @ApiModelProperty ("金蝶账号名称")
    @TableField ("king_name")
    private String kingName;

    @ApiModelProperty ("金蝶账套数据中心Id")
    @TableField ("king_dc_id")
    private String kingDcId;

    @ApiModelProperty ("金蝶应用ID/AppID")
    @TableField ("king_app_id")
    private String kingAppId;

    @ApiModelProperty ("金蝶用户名称，ERP推送过程中需要登录的用户名")
    @TableField ("king_user_name")
    private String kingUserName;

    @ApiModelProperty ("应用秘钥")
    @TableField ("king_app_secret")
    private String kingAppSecret;

    @ApiModelProperty ("应用地址,实际是金蝶应用安装的服务器地址")
    @TableField ("king_url")
    private String kingUrl;

    @ApiModelProperty ("创建人")
    @TableField ("create_by")
    private String createBy;

    @ApiModelProperty ("创建时间")
    @JsonFormat (pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField ("create_time")
    private Date createTime;

    @ApiModelProperty ("更新人")
    @TableField ("update_by")
    private String updateBy;

    @ApiModelProperty ("更新时间")
    @TableField ("update_time")
    private Date updateTime;

    @ApiModelProperty ("是否禁用")
    @TableField ("is_disabled")
    private Boolean isDisabled;

    @ApiModelProperty ("逻辑删除")
    @TableField ("is_used")
    private Integer isUsed;

    @TableField (exist = false)
    private String orgName;

}
